#ifndef __breem_h__
#define __breem_h__

#include "RomSet.h"
#include "Machine.h"
#include "video.h"
#include "input.h"
#include "sound.h"

//defined elsewhere
extern "C" void AddRomSets();
extern char appname[];
extern char appversion[];
extern char settings_subkey[];
extern char about_copyright[];
extern char about_link[];
extern char about_link2[];

//defined here
extern char breemlib_name[];
extern char breemlib_version[];
extern char breemlib_copyright[];

#include "version.h"

extern CRomSet *RomSet;
extern CMachine *Machine;
extern CVideo *video;
extern CInput *input;
extern CSound *sound;
extern int quit;
extern int running;
extern u16 SoundBuf[];
extern int VideoBPP;
extern CRomSet *RomSets[];

//void ResizeClient(HWND hwnd,int w,int h);		//resize window client area
int InitSystem(int w,int h,int rot);			//initialize system classes
void KillSystem();									//free system classes
int Init(CRomSet *r);					//initialize romset to be ready to play
void Kill();											//unload everything loaded by Init()

#endif
